cmake_minimum_required(VERSION 3.12)
project(library)

if(MSVC)
    add_compile_options(/utf-8)
endif()
    

# 设置C++标准
set(CMAKE_CXX_STANDARD 14)

# 添加源文件
set(SOURCES
    main.cpp
    include/book/book.cpp
    include/bookmanager/bookmanager.cpp
    include/UI/UI.cpp
    include/user/user.cpp
    include/usermanager/usermanager.cpp
    include/_library/library.cpp
)

# 生成可执行文件
add_executable(library ${SOURCES})